/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2023/3/20 21:20:30
 *        Description: 暂无
 ***********************************************************************/

using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace CoreCms.Net.Model.Entities;

/// <summary>
///     充值类型
/// </summary>
public class CoreCmsTopUpType
{
    /// <summary>
    ///     构造函数
    /// </summary>
    public CoreCmsTopUpType()
    {
    }

    /// <summary>
    ///     序列
    /// </summary>
    [Display(Name = "序列")]
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    [Required(ErrorMessage = "请输入{0}")]
    public int id { get; set; }


    /// <summary>
    ///     标题
    /// </summary>
    [Display(Name = "标题")]
    [Required(ErrorMessage = "请输入{0}")]
    [StringLength(50, ErrorMessage = "{0}不能超过{1}字")]
    public string title { get; set; }

    /// <summary>
    ///     充值金额
    /// </summary>
    [Display(Name = "充值金额")]
    [Required(ErrorMessage = "请输入{0}")]
    public int defaultMoney { get; set; }


    /// <summary>
    ///     赠送金额
    /// </summary>
    [Display(Name = "赠送金额")]
    [Required(ErrorMessage = "请输入{0}")]
    public int giftMoney { get; set; }


    /// <summary>
    ///     赠送积分
    /// </summary>
    [Display(Name = "赠送积分")]
    [Required(ErrorMessage = "请输入{0}")]
    public int giftPoint { get; set; }


    /// <summary>
    ///     显示排序
    /// </summary>
    [Display(Name = "显示排序")]
    [Required(ErrorMessage = "请输入{0}")]
    public int sortId { get; set; }


    /// <summary>
    ///     是否启用
    /// </summary>
    [Display(Name = "是否启用")]
    [Required(ErrorMessage = "请输入{0}")]
    public bool isEnable { get; set; }


    /// <summary>
    ///     说明
    /// </summary>
    [Display(Name = "说明")]
    [Required(ErrorMessage = "请输入{0}")]
    [StringLength(100, ErrorMessage = "{0}不能超过{1}字")]
    public string description { get; set; }
}